package org.lee.generator.config;


import lombok.Data;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Import;
import org.noear.solon.annotation.Inject;

/**
 * 读取代码生成相关配置
 *
 * @author ruoyi
 */
@Data
@Configuration
@Import(profiles = {"classpath:generator.yml"})
public class GenConfig {
    /**
     * 表前缀(类名不会包含表前缀)
     */
    @Inject("${gen.package-name}")
    private String tablePrefix;
    /**
     * 自动去除表前缀，默认是false
     */
    @Inject("${gen.table-prefix}")
    private boolean autoRemovePre;
    /**
     * 作者
     */
    @Inject("${gen.author}")
    private String author;
    /**
     * 生成包路径
     */
    @Inject("${gen.package-name}")
    private String packageName;

}
